import { createRouter, createWebHashHistory } from 'vue-router'
import { constantRoute, anyRouter, asnycRoute } from '@/router/router.ts'
const router = createRouter({
  // 路由模式hash
  history: createWebHashHistory(),
  routes: [...constantRoute, ...anyRouter, ...asnycRoute],
  // 滚动行为
  scrollBehavior() {
    return {
      left: 0,
      right: 0
    }
  }
})

export default router
